package org.vergil.core.designpattern.command.log;

/**
 * Created by vergil on 17-3-24.
 */
//增加命令类：具体命令
public class InsertCommand extends AbstractCommand {

    public InsertCommand(String name) {
        super(name);
    }

    @Override
    public void execute(String args) {
        this.args = args;
        configOperator.insert(args);
    }

    @Override
    public void execute() {
        configOperator.insert(this.args);
    }
}
